package top.atluofu.luofuecommerce.authserver.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import top.atluofu.common.utils.R;
import top.atluofu.luofuecommerce.authserver.vo.SocialUser;
import top.atluofu.luofuecommerce.authserver.vo.UserLoginVo;
import top.atluofu.luofuecommerce.authserver.vo.UserRegisterVo;

/**
 * @ClassName: MemberFeignService
 * @description: TODO
 * @author: 有罗敷的马同学
 * @datetime: 2022Year-11Month-24Day-11:28
 * @Version: 1.0
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/register")
    public R register(@RequestBody UserRegisterVo userRegisterVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    public R oauth2Login(@RequestBody SocialUser socialUser) throws Exception;
}
